package com.xncoding.elasticsearch.config;

import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * ExampleServiceProperties
 *
 * @author XiongNeng
 * @version 1.0
 * @since 2018/2/28
 */
@Component
@ConfigurationProperties("pp.online")
public class testProperties {
    // prefix的值+sftp变量名为properties key的前一部分, 将key剩余的部分作为map的key, value作为map的value
    public Map<String, Map<String,String>> sftp = new HashMap();

    public Map<String, Map<String, String>> getSftp() {
        return sftp;
    }

    public void setSftp(Map<String, Map<String, String>> sftp) {
        this.sftp = sftp;
    }
}
